﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRen.Models.ViewModel
{
    public class vRegisterComplete
    {

        [Required]
        [Display(Name = "用户名")]
        public string Username { set; get; }

        [Required]
        [Display(Name = "密码")]
        [MinLength(6, ErrorMessage = "密码最少是6位")]
        public string Password { set; get; }

        [Required]
        [Display(Name = "密码重复")]
        [MinLength(6, ErrorMessage = "密码最少是6位")]
        [Compare("Password")]
        public string Confirm { set; get; }

    }
}
